package com.wxwyapp.config;

import org.apache.log4j.Logger;

import com.frame.jfinal.IRoutes;
import com.jfinal.config.Routes;
import com.wxwyapp.controller.BusinessPropertyController;
import com.wxwyapp.controller.DbQueryController;
import com.wxwyapp.controller.DbSaveController;
import com.wxwyapp.controller.MessageController;
import com.wxwyapp.controller.PublicPropertyController;
import com.wxwyapp.controller.UserContoller;
/**
 * 作用描述：网欣模块路由配置 
 * @author LRC
 * @createDate 2015年9月28日
 * @version v1.0 
 * @updateRecord 格式：时间，作者，修改说明
 **
 * 
 */
public class WxwyAppConfig implements IRoutes{
	
	public static Logger log = Logger.getLogger(WxwyAppConfig.class);
	
	/**
	 * 路由请求配置
	 */
	@Override
	public void routeConfig(Routes me) {
		
		//公共数据查询接口
		me.add("/wxwyapp/dbquery",DbQueryController.class,"/WEB-INF/html/wxwyapp/dbquery");
		//公共数据保存接口
		me.add("/wxwyapp/dbsave",DbSaveController.class,"/WEB-INF/html/wxwyapp/dbsave");
		
		/**
		 * 用户操作模块控制器
		 */
		me.add("/wxwyapp/user",UserContoller.class,"/WEB-INF/html/wxwyapp/user");
		
		me.add("/wxwyapp/pubpropt",PublicPropertyController.class,"/WEB-INF/html/wxwyapp/pubpropt");
		
		me.add("/wxwyapp/buspropt",BusinessPropertyController.class,"/WEB-INF/html/wxwyapp/buspropt");
		/**
		 * 消息管理
		 */
		me.add("/wxwyapp/message",MessageController.class,"/WEB-INF/html/wxwyapp/message");
	}
}
